<?php
/**
 * View  LaFabbrica.org
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    17-mag-2011
 * @package    LaFabbrica
 * @copyright  Copyright (c) 2011 Luigi Pastore
 */
?>
<div id="content">
    <form>
	<ul>
	    <li class="paging-context ">
		<table class="pgStyle1 circle2" cellspacing="0">
		    <tr>
			<td class="c">
			    <var>1</var>
			</td>
			<td class="t">
			    <b id="pagecircle1"><a href="/admin/live/artisti/id/<?php echo $this->live_id ?>">Artisti</a></b>
			</td>
			<td class="c">
			    <var>2</var>
			</td>
			<td class="t">
			    <b id="pagecircle2"><a href="/admin/live/location/id/<?php echo $this->live_id ?>">Location</a></b>
			</td>
			<td class="c">
			    <var>3</var>
			</td>
			<td class="t">
			    <b id="pagecircle2"><a href="/admin/live/info/id/<?php echo $this->live_id ?>">Dettagli Live</a></b>
			</td>
			<td class="c selected">
			    <var>3</var>
			</td>
			<td class="t selected">
			    <b id="pagecircle2">Conferma</b>
			</td>
		    </tr>
		</table>
	    </li>
	</ul>
	<ul>
	    <li id="errorLi" style="<?php echo $this->errorMsg ? '' : 'display:none' ?>">
		<h3 id="errorMsgLbl">Si &egrave; verificato un problema durante l'invio del modulo.</h3>
		<p id="errorMsg">
		    <?php echo $this->errorMsg ?>
		</p>
	    </li>	
	    <li class="section"><h3></h3></li>
	</ul>        
    </form>
    <div id="summary" class="live">
	<div class="head live">
	    <h2>Riepilogo Live:</h2>
	</div>
	<div class="body">
	    <table cellspacing="0" class="table">
		<tbody>
		    <tr>
			<th>Artista/i:</th>
			<td>
			    <strong>
				<?php
				foreach( $this->artists['main'] as $artist ) :
				    $artists_list .= $artist['artist_name'] . ', ';
				endforeach;
				?>
				<?php echo substr( $artists_list, 0, -2 ); ?>
			    </strong>
			</td>
		    </tr>
		    <?php if( count( $this->artists['openingact'] ) ): ?>
    		    <tr>
    			<th>Opening-act:</th>
    			<td>
    			    <strong>
				    <?php
				    $artists_list = null;
				    foreach( $this->artists['openingact'] as $artist ) :
					$artists_list .= $artist['artist_name'] . ', ';
				    endforeach;
				    ?>
				    <?php echo substr( $artists_list, 0, -2 ); ?>				
    			    </strong>
    			</td>
    		    </tr>			
		    <?php endif; ?>
		    <tr>
			<th>Location:</th>
			<td><strong><?php echo $this->location['location_name'] ?>, <?php echo $this->location['location_city'] ?> (<?php echo $this->province[$this->location['location_province_id']]['province_short_name'] ?>)</strong></td>
		    </tr>
		    <tr>
			<th>Quando:</th>
			<td><strong><?php echo $this->days[date( 'N', mktime( $hour, $minute, $second, $this->data['live_date_m'], $this->data['live_date_d'], $this->data['live_date_y'] ) )] ?> <?php echo $this->data['live_date_d'] ?>-<?php echo $this->data['live_date_m'] ?>-<?php echo $this->data['live_date_y'] ?></strong> alle <strong><?php echo $this->data['live_stagetime_h'] ?>h<?php echo $this->data['live_stagetime_m'] ?></strong></td>
		    </tr>
		    <tr class="break">
			<td colspan="2">&nbsp;</td>
		    </tr>
		    <tr>
			<th>Ingresso:</th>
			<td><?php echo $this->data['live_price_1'] ? $this->data['live_price_1'] . ',' . $this->data['live_price_2'] . ' &euro;' : 'gratuito' ?></td>
		    </tr>
		    <tr class="break">
			<td colspan="2">&nbsp;</td>
		    </tr>
		    <tr>
			<th>Load-in:</th>
			<td><?php echo $this->data['live_loadin_h'] ? $this->data['live_loadin_h'] . 'h' . $this->data['live_loadin_m'] : '' ?></td>
		    </tr>
		    <tr>
			<th>Soundcheck:</th>
			<td><?php echo $this->data['live_soundcheck_h'] ? $this->data['live_soundcheck_h'] . 'h' . $this->data['live_soundcheck_m'] : '' ?></td>
		    </tr>
		    <tr>
			<th>Apertura Cancelli:</th>
			<td><?php echo $this->data['live_doorsopen_h'] ? $this->data['live_doorsopen_h'] . 'h' . $this->data['live_doorsopen_m'] : '' ?></td>
		    </tr>                   
		    <tr>
			<th>Note:</th>
			<td><?php echo $this->data['live_notes'] ?></td>
		    </tr>
		</tbody>
	    </table>
	</div>
    </div>

    <br style="clear: both" />
</div>

<form id="form-live" class="fab" method="post" action="/admin/live/conferma/id/<?php echo $this->live_id ?>">
    <input type="hidden" name="conferma" id="conferma" value="conferma" />
    <div id="formButtons">
	<button id="salva" name="salva" value="salva" class="button positive">
	    <img src="/images/admin/tick.png" alt="" />Salva
	</button>
	<button id="annulla" name="annulla" value="annulla" class="button negative">
	    <img src="/images/admin/cross.png" alt="" />Annulla
	</button>
    </div>
</form>